package com.cms.service.converter;


import com.cms.dao.entity.UserEntity;
import com.cms.dao.enums.converter.EnumConverter;
import com.cms.service.dto.UserDto;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author laolang
 * @version 1.0.0
 * @ClassName UserConverter
 */
@Mapper(uses = EnumConverter.class)
public interface UserConverter {

    UserConverter CONVERTER = Mappers.getMapper(UserConverter.class);



    //entity转dto
    UserDto  entityToDto(UserEntity entity);

}
